<%@page import="sun.misc.BASE64Encoder"%>
<%@page import="java.util.Map"%>
<%@page import="com.boc.image.sqlmap.domain.TImgXc"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<jsp:useBean id="albums" class="com.boc.image.web.Albums" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
<title>好多图免费图片外链空间</title>
<meta name="copyright" content= "免费图片空间上传 Copyright(c) 2011" />
<meta name="application-name" content="免费图片空间上传" />
<meta name="keywords" content="淘宝相册|免费相册|外链免费相册|淘宝图片空间|淘宝免费相册|淘宝外链相册|免费可外链相册|图片外链网站" /> 
<meta name="description" content="专业淘宝相册,外贸相册,提供稳定的淘宝图片存储空间，支持相册批量上传、批量贴图。中国唯一的彻底免费的淘宝免费相册。">
<link type="text/css" href="css/albums.css" rel="stylesheet"/>
<script type="text/javascript" src="../../js/public.js"></script>
<script type="text/javascript" src="../../js/easyUI/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="../../js/AjaxProxy.js"></script>
<script type="text/javascript" src="css/swfobject.js"></script>
<script type="text/javascript" src="script/albums.js"></script>

</head>
<body>
<div class="frame_01">
	<div class="frame_01_left">相册管理</div>
	<div class="frame_01_right">
		<a href="../../index.html" target="_top">首页</a>&nbsp;》
		<a href="/core" target="_top">管理中心</a>&nbsp;》
		<font color="#000">相册管理</font>
	</div>
</div>
<div class="frame_02"></div>
<div class="frame_03" style="overflow:hidden;">
	<table width="755" border="0" cellspacing="0">
	  <tr>
		<td align="center" valign="top">
			<table width="650" border="0" cellspacing="0" height="560" cellpadding="0">
			  <tr>
				<td height="30" class="nav-container">
					<ul class="nav">
						<li><a href="javascript:void(0);" id="albums_manager">我的相册</a></li>
						<li><a href="javascript:void(0);" id="albums_new">创建相册</a></li>
						<li><a href="javascript:void(0);" id="albums_upd" style="display:none">修改相册</a></li>
					</ul>
				</td>
			  </tr>
			  <tr>
				<td height="10">&nbsp;</td>
			  </tr>
			  <tr>
				<td height="520" align="center" valign="top">
					
					<div id="divAlbums" style="display:none">
						<table width="350" border="0" cellspacing="0">
						  <tr>
							<td width="80" height="30" align="right">相册名称：</td>
							<td width="270"><input type="text" id="cXcmc" style="width:270px;" class="input_task"></td>
						  </tr>
						
						  <tr>
							<td width="80" height="80" align="right">相册描述：</td>
							<td width="270"><textarea id="cXcms" style="width:270px; height:75px;"></textarea></td>
						  </tr>
						  <tr>
							<td height="35" colspan="2" align="center">
								<input type="button" id="btnSave" value=" 保 存 ">							</td>
						  </tr>
					   </table>
					</div>
					<div id="divUpdAlbums" style="display:none">
						<table width="450" border="0" cellspacing="0">
						  <tr>
							<td width="80" height="30" align="right">相册名称：</td>
							<td width="200"><input type="text" id="cXcmc1" style="width:200px;" class="input_task"></td>
							<td width="170" rowspan="3" height="170">
								<object id="AlbumsUpload" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="150" height="170" >
									<param name="movie" value="css/albums.swf" />
									<!--[if !IE]>-->
									<object type="application/x-shockwave-flash" data="css/albums.swf" width="150" height="170"> 
									<!--<![endif]-->
								
									<!--[if !IE]>-->
									</object> 
									<!--<![endif]-->
								</object>
							</td>
						  </tr>
						
						  <tr>
							<td width="80" height="105" align="right">相册描述：</td>
							<td width="200"><textarea id="cXcms1" style="width:200px; height:100px;"></textarea></td>
						  </tr>
						  <tr>
							<td height="35" colspan="2" align="center" valign="bottom">
								<input type="hidden" id="albumsId">
								<input type="button" id="btnUpd" value=" 修 改 ">&nbsp;&nbsp;
							<input type="button" id="btnClose" value=" 关 闭 "></td>
						  </tr>
					   </table>
					</div>
					<div id="divImage" style="display:''; width:650px; height:520px;">
						<%
							String userid = request.getSession().getAttribute("userId").toString();
							List album = albums.getUserAlbums(userid);
							for (int i = 0 ; i < album.size() ; i ++) {
								Map m = (Map)album.get(i);
								%>
									<div class="albums" v0='<%=m.get("N_ID")%>' v1='<%=(new BASE64Encoder()).encode(m.get("C_XCMC").toString().getBytes())%>'>
										<table width="100%" border="0" cellpadding="0" cellspacing="0">
										  <tr>
											<td height="154" background="../../images/albums.png" align="center" style="vertical-align:middle;">
												<% if(m.get("C_PATH") == null) {%>
													<img src="../../images/fm.jpg" width="120" align="absmiddle" height="135" id="albumsFM_<%=m.get("N_ID")%>"/>
												<%}else{%>
													<img src="../../images/albums/<%=m.get("C_PATH")%>" width="120" height="135" id="albumsFM_<%=m.get("N_ID")%>"/>
												<%}%>
											</td>
										  </tr>
										  <tr>
											<td align="center" height="18"><%=m.get("C_XCMC") %></td>
										  </tr>
										  <tr>
											<td align="center" height="18">共<%=m.get("NUMS") %>张图片</td>
										  </tr>
										  <tr id="showOrHide" style="display:none">
											<td align="center" class="imgA">
												<img src="../../images/x.png" type='2' albumsId='<%=m.get("N_ID") %>' 
																					   albumsName='<%=m.get("C_XCMC") %>'  
																					   title="删除相册">
												&nbsp;
												<img src="../../images/u.png" albumsId='<%=m.get("N_ID") %>' 
																			  albumsName='<%=m.get("C_XCMC") %>' 
																			  albumsUrl='<%=m.get("C_PATH") %>'
																			  albumsSm='<%=m.get("C_DOMAIN") %>' 
																			  title="修改相册"
																			  type='1'>
												&nbsp;<a href="/filter/image/image?id=<%=m.get("N_ID") %>&albumName=<%=(new BASE64Encoder()).encode(m.get("C_XCMC").toString().getBytes())%>" target="content">
												<img src="../../images/up.png" albumsId='<%=m.get("N_ID") %>' 
																			  albumsName='<%=m.get("C_XCMC") %>' 
																			  albumsUrl='<%=m.get("C_PATH") %>'
																			  albumsSm='<%=m.get("C_DOMAIN") %>' 
																			  title="上传图片"
																			  type='3'></a>
										  </tr>
										</table>
									</div>
								<%
							}
						%>
						
					</div>
				</td>
			  </tr>
		  </table>

		</td>
	  </tr>
	</table>
</div>
<div class="frame_03" style="height:50px;">

</div>
<div class="frame_04"></div>

</body>
</html>